<ion-view title="登录" hide-back-button="true">
  <ion-nav-buttons side="left">
    <button class="button button-clear" ng-click="goBack()" side="primary">
      <i class="icon ion-chevron-left"></i>
    </button>
  </ion-nav-buttons>
  <ion-content>
    <div class="container" style="margin-top: 10px;">
      <div class="list">
        <label class="item item-input main-input">
          <i class="icon ion-person placeholder-icon"></i>
          <input placeholder="请输入手机号" type="text" ng-model="phone">
        </label>
        <label class="item item-input main-input">
          <i class="icon ion-ios-locked placeholder-icon"></i>
          <input placeholder="请输入密码" type="password" ng-model="pwd">
        </label>
      </div>

      <div style="height: 20px"></div>

      <button class="button button-block main-background" style="border-radius: 10px" ng-disabled="!pwd || !phone || phone.length < 3 || pwd.length < 6" ng-click="login()">
        登录
      </button>
      <div>
        <div style="float: left;"><a ui-sref="reg" style="color: #5d5d5d">快速注册</a></div>
        <div style="float: right"><a ui-sref="forgot" style="color: #5d5d5d">忘记密码</a></div>
        <div style="clear: both"></div>
      </div>
    </div>
  </ion-content>
</ion-view>
